
const routes = [
  {
    path: '/',
    name: 'home',
    // title:"首页", 这样配置无效 to.meta.title获取不到 需按下边的方式配置
    meta:{
      title:"首页",
    },
    component: ()=> import("@/views/Home")
  },
  {
    path: '/login',
    name: 'login',
    // title:"首页", 这样配置无效 to.meta.title获取不到 需按下边的方式配置
    meta:{
      title:"登录",
    },
    component: ()=> import("@/views/login/login.vue")
  },
  {
    path: '/layout',
    name: 'layout',
    meta:{
      title:"布局",
    },
    redirect: '/layout/order/list',
    component: ()=> import("@/components/layout/contentLayout.vue"),
    children: [
      {
        path: '/layout/order',
        name: '订单',
        title: '订单',
        redirect: '/layout/order/list',
        component: () => import('@/views/order/order.vue'),
        children: [
          {
            path: '/layout/order/list',
            name: '订单列表',
            title: '订单列表',
            component: () => import('@/views/order/orderList.vue')
          },
          {
            path: '/layout/order/bindRelate',
            name: '绑定关系',
            title: '绑定关系',
            component: () => import('@/views/order/bindRelate.vue')
          },
        ]
      },
      {
        path: '/layout/runMan',
        name: '跑男',
        title: '跑男',
        redirect: '/layout/runMan/list',
        component: () => import('@/views/runMan/index.vue'),
        children: [
          {
            path: '/layout/runMan/list',
            name: '跑男列表',
            title: '跑男列表',
            component: () => import('@/views/runMan/runManList.vue')
          },

        ]
      },
      {
        path: '/layout/user',
        name: '用户',
        title: '用户',
        redirect: '/layout/user/list',
        component: () => import('@/views/user/index.vue'),
        children: [
          {
            path: '/layout/user/list',
            name: '用户列表',
            title: '用户列表',
            component: () => import('@/views/user/userList.vue')
          },
          {
            path: '/layout/user/log/loginLog',
            name: '用户登陆记录',
            title: '用户登陆记录',
            component: () => import('@/views/user/userLoginLog.vue')
          },
          {
            path: '/layout/user/log/lookLog',
            name: '用户查看记录',
            title: '用户查看记录',
            component: () => import('@/views/user/userLookLog.vue')
          },
          {
            path: '/layout/user/log/cheatLog',
            name: '用户聊天记录',
            title: '用户聊天记录',
            component: () => import('@/views/user/userCheatLog.vue')
          }
        ]
      },
      {
        path: '/layout/merchant',
        name: '商户',
        title: '商户',
        redirect: '/layout/merchant/list',
        component: () => import('@/views/merchant/index.vue'),
        children: [
          {
            path: '/layout/merchant/list',
            name: '商户列表',
            title: '商户列表',
            component: () => import('@/views/merchant/merchantList.vue')
          },
          {
            path: '/layout/merchant/log/loginLog',
            name: '商户登记记录',
            title: '商户登记记录',
            component: () => import('@/views/merchant/merchantloginLog.vue')
          },
          {
            path: '/layout/merchant/log/lookLog',
            name: '商户查看记录',
            title: '商户查看记录',
            component: () => import('@/views/merchant/merchantlookLog.vue')
          },
          {
            path: '/layout/merchant/log/cheatLog',
            name: '商户聊天记录',
            title: '商户聊天记录',
            component: () => import('@/views/merchant/merchantCheatLog.vue')
          }
        ]
      },
      {
        path: '/layout/finance',
        name: '财务',
        title: '财务',
        redirect: '/layout/finance/list',
        component: () => import('@/views/finance/index.vue'),
        children: [
          {
            path: '/layout/finance/list',
            name: '财务列表',
            title: '财务列表',
            component: () => import('@/views/finance/financeList.vue')
          },

        ]
      },
    ]
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue')
  }
]

export default routes
